package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallRefundsDO;
import com.starlink.model.request.MallRefundsRequest;
import com.starlink.model.vo.MallRefundsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallRefundsDtoMapper {

    MallRefundsDtoMapper INSTANCE = Mappers.getMapper(MallRefundsDtoMapper.class);

    /**
    * DO to VO
    * @param mallRefundsDO
    * @return
    */
    MallRefundsVO do2VO(MallRefundsDO mallRefundsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallRefundsDO request2DO(MallRefundsRequest request);
}
